import 'package:ref/ref.dart';

Map<String, dynamic> data = {
  'info': {'name': 'kgm', 'age': 50},
  'count': 0
};
var fatherInfo = Ref(data);

var childAge = RefCompute<int>(() {
  return fatherInfo.value['info']['age'] - 20;
});
